/*
    类型转换
        自动(提升)
            byte-short-int-...
                  char-int-...
        强制
 */



public class ConversionDemo {
    public static void main(String[] args) {
        //右int自动变double
        double d = 10;
        System.out.println(d);//10.0

        //byte 转 char ?
        byte b = 10;
        short s = b;
        int i = b;
        //不可以
        //char c = b;//不兼容的类型: 从byte转换到char可能会有损失

        char c = 'A';
        i = c + 1;
        System.out.println(i);


        //强制类型转换
        int j = (int) 88.9;






    }
}
